* Main figures =================================================================

	****************************************************************************
	* Figure 1: Child Development Outcomes at Follow-up by Treatment Arm   	   *
	*--------------------------------------------------------------------------*
	*	REQUIRES:	"${dt_final}panel_RR_indexes.dta"		   	   *
	*	CREATES: ${out_graphs}/F1_childout_followup.eps			   	   *
	****************************************************************************

	do "${do_graphs}/F1_childout_followup.do"	
	
	****************************************************************************
	* Figure 2: Parental Outcomes at Follow-up by Treatment Arm			   	   *
	*--------------------------------------------------------------------------*
	*	REQUIRES:	"${dt_final}panel_RR_indexes.dta"		   	   *
	*	CREATES:  ${do_graphs}/F2_parentout_followup.eps							   	   *
	****************************************************************************

	do "${do_graphs}/F2_parentout_followup.do"
	
	

* Main tables ==================================================================

	****************************************************************************
	* Table 1: Baseline balance, Household and Child Characteristics	 	   *
	*--------------------------------------------------------------------------*
	*	REQUIRES:	"${dt_final}panel_RR_indexes.dta"						   *
	*	CREATES:	${out_tables}/T1_baseline_desc.xls				   	   	   *
	****************************************************************************
	
	do "${do_tables}/T1_balance_characteristics.do"

	****************************************************************************
	* Table 2: Balance of Household and Child Characteristics at Follow-up 	   *
	*--------------------------------------------------------------------------*
	*	REQUIRES:	"${dt_final}panel_RR_indexes.dta"						   *
	*	CREATES:  ${out_tables}/T2_Attrition_endline.xls					   	   *
	****************************************************************************
		
	do "${do_tables}/T2_balance_characteristics_followup.do"

	****************************************************************************
	* Table 3: ITT estimates of child development outcomes					   *
	*--------------------------------------------------------------------------*
	*	REQUIRES:	"${dt_final}panel_RR_indexes.dta"	   		   *
	*	CREATES:  ${out_tables}/T3_ITT_childdevelopment		 	   *
	****************************************************************************
		
	do "${do_tables}/T3_ITT_childdevelopment.do"

	****************************************************************************
	* Table 4: ITT estimated parameters parental practices and parental beliefs*
	*--------------------------------------------------------------------------*
	*	REQUIRES:	"${dt_final}panel_RR_indexes.dta"		   	   *
	*	CREATES:  ${out_tables}/T4_ITT_parentalpractices					   	   *
	****************************************************************************

	do "${do_tables}/T4_ITT_parentalpractices.do"
		
	****************************************************************************
	* Table 5: Program take-up											   	   *
	*--------------------------------------------------------------------------*
	*	REQUIRES:	"${dt_final}panel_RR_indexes.dta"
	*				"${dt_final}baseline_sociodem_emp.dta"
	*				"${dt_final}follow_up_sociodem_emp.dta"
	*				"${dt_final}baseline_sociodem_oth.dta"
	*			
	* 	CREATES:	${out_tables}/T5_takeup.xls
	****************************************************************************
		
	do "${do_tables}/T5_takeup.do"
	
	****************************************************************************
	* Table 6: Effect of participation in NEP on child outcomes			   	   *
	*--------------------------------------------------------------------------*
	*	REQUIRES:	"${dt_final}panel_RR_indexes.dta" 	   	   *
	*	CREATES: ${out_tables}/T6_participation_childout.csv  			   	   *
	****************************************************************************
		
	do "${do_tables}/T6_participation_childout.do"
	
	****************************************************************************
	* Table 7: Effect of participation in NEP on parental outcomes		   	   *
	*--------------------------------------------------------------------------*
	*	REQUIRES:	"${dt_final}panel_RR_indexes.dta" 	   	   *
	*	CREATES: ${out_tables}/T7_participation_parentalout.xls  			   	   *
	****************************************************************************
		
	do "${do_tables}/T7_participation_parentalout.do"	
	
	****************************************************************************
	* Table 8: Selection on Unobservables 		   	   *
	*--------------------------------------------------------------------------*
	*	REQUIRES:	"${dt_final}panel_RR_indexes.dta" 	   	   *
	*	CREATES: ${out_tables}/T8_selection_unobs.csv  			   	   *
	****************************************************************************
		
	do "${do_tables}/T8_selection_unobs.do"	
	
	****************************************************************************
	* Table 9: Mediation analysis: Vocabulary Index		   	   *
	*--------------------------------------------------------------------------*
	*	REQUIRES:	"${dt_final}panel_RR_indexes.dta" 	   	   *
	*	CREATES: ${out_tables}/T9_mediation_vocabulary.csv  			   	   *
	****************************************************************************
		
	do "${do_tables}/T9_mediation_vocabulary.do"	
	
	****************************************************************************
	* Table 10: Mediation analysis: Socioemotional Index				   	   *
	*--------------------------------------------------------------------------*
	*	REQUIRES:	"${dt_final}panel_RR_indexes.dta" 	   	   *
	*	CREATES: ${out_tables}/T10_mediation_socioemotional.csv  			   *
	****************************************************************************
		
	do "${do_tables}/T10_mediation_socioemotional.do"	
	
	****************************************************************************
	* Table 11: Program Implementation Costs							   	   *
	*--------------------------------------------------------------------------*
	*	Calculations in excel file ${out_tables}/T11_programcosts.xlsx  	   *
	****************************************************************************
		
	
	****************************************************************************
	* Table 12: Cost-benefit Ratios										   	   *
	*--------------------------------------------------------------------------*
	*	Calculations in excel file ${out_tables}/T12_cost_benefit_ratios.xlsx  *
	****************************************************************************
		
	
		
* Appendix figures =============================================================

	****************************************************************************
	* Figure A1: Baseline child cognitive development and primary 			   *
	* caregiver education												   	   *
	*--------------------------------------------------------------------------*
	*	REQUIRES: "$dt_int/baseline_for figures.dta"
	*	CREATES:  ${do_graphs}/appendix/F1A_base_childcog_careg.eps					  *
	****************************************************************************
		
	do "${do_graphs}/Appendix/F1A_base_childcog_careg.do"

	****************************************************************************
	* Figure A2: Baseline child behavior and primary caregiver education   	   *
	*--------------------------------------------------------------------------*
	*	REQUIRES: "$dt_int/baseline_for figures.dta"
	*	CREATES:  ${do_graphs}/appendix/F2A_base_childbeh_caregiver.eps		   	   *
	****************************************************************************

	do "${do_graphs}/Appendix/F2A_base_childbeh_caregiver.do"

	****************************************************************************
	* Figure A3: Baseline parenting behaviors and primary caregiver education  *
	*--------------------------------------------------------------------------*
	*	REQUIRES: "$dt_int/baseline_for figures.dta"
	*	CREATES:  ${do_graphs}/appendix/F3A_base_parentbeh_caregiver.eps		   	   *
	****************************************************************************

	do "${do_graphs}/Appendix/F3A_base_parentbeh_caregiver.do"

	****************************************************************************
	* Figure A4: Baseline parental beliefs									   *
	*--------------------------------------------------------------------------*
	*	REQUIRES: "$dt_int/baseline_for figures.dta"
	*	CREATES:  appendix/F4A_parentalbeliefs   	   *
	****************************************************************************

	do "${do_graphs}/Appendix/F4A_parentalbeliefs.do"

* Appendix tables ==============================================================

	****************************************************************************
	* Table A1: Baseline Balance: Child Receptive and Expressive Language  	   *
	*--------------------------------------------------------------------------*
	*	REQUIRES:	"${dt_final}panel_RR_indexes.dta" 	   	   *

	*	CREATES:	${do_tables}/T1A_basebalance_lang.csv						   	   *
	****************************************************************************

	do "${do_tables}/appendix/T1A_basebalance_lang.do"

	****************************************************************************
	* Table A2: Baseline Balance: Child Maladaptive Behavior			   	   *
	*--------------------------------------------------------------------------*
	*	REQUIRES:	"${dt_final}panel_RR_indexes.dta" 		   	   *
	*	CREATES:  ${do_tables}/T2A_basebalance_malb.csv					   	   *
	****************************************************************************

	do "${do_tables}/appendix/T2A_basebalance_malb.do"

	****************************************************************************
	* Table A3: Baseline Balance: Executive function performance		   	   *
	*--------------------------------------------------------------------------*
	*	REQUIRES:	"${dt_final}panel_RR_indexes.dta" 	   	   *
	*	CREATES:  ${do_tables}/T3A_basebalance_ef.csv					   	   *
	****************************************************************************

	do "${do_tables}/appendix/T3A_basebalance_ef.do"

	****************************************************************************
	* Table A4: Baseline balance: parental beliefs, mental health, and 		   *
	* investments in children	   	  										   *
	*--------------------------------------------------------------------------*
	*	REQUIRES:	"${dt_final}panel_RR_indexes.dta" 	   	   *
	*	CREATES:  ${do_tables}/T4A_basebalance_parent.csv					   	   *
	****************************************************************************

	do "${do_tables}/appendix/T4A_basebalance_parent.do"

	****************************************************************************
	* Table A5: Raw child measures and indices of child outcomes. 		   	   *
	*--------------------------------------------------------------------------*
	*	REQUIRES:	"${dt_final}panel_RR_indexes.dta" 	   	   *
	*	CREATES:  	${out_tables}/T5A_rawchild_out.xls					  	   	   *
	****************************************************************************

	do "${do_tables}/appendix/T5A_rawchild_out.do"

	****************************************************************************
	* Table A6: Sensitivity of ITT estimates to interviewer fixed effects 	   *
	* and clustering							   	 						   *
	*--------------------------------------------------------------------------*
	*	REQUIRES:	"${dt_final}panel_RR_indexes.dta"		  	   *
	*	CREATES:  		${out_tables}/T6A_ITT_sensitivity.xls			   	   *
	****************************************************************************

	do "${do_tables}/appendix/T6A_ITT_sensitivity.do"

	****************************************************************************
	* Table A7: ITT estimates of individual measures of child outcomes 		   *
	*--------------------------------------------------------------------------*
	*	REQUIRES:	"${dt_final}panel_RR_indexes.dta"			   *
	*	CREATES:  	${out_tables}/appendix/T6A_ITT_sensitivity.xls		   *
	****************************************************************************

	do "${do_tables}/appendix/T7A_ITT_child_individual.do"

	****************************************************************************
	* Table A8: ITT estimates of individual measures of parental outcomes  	   *
	*--------------------------------------------------------------------------*
	*	REQUIRES: ${dt_final}/platform_survey_constructed.dta			       *
	* 	CREATES:  	${out_tables}/T7A_ITT_child_individual.xls					   	   *
	****************************************************************************

    do "${do_tables}/appendix//T8A_ITT_parental_individual.do"

	****************************************************************************
	* Table A9: First stage (extended table with all controls)			       *
	*--------------------------------------------------------------------------*
	*	REQUIRES:	"${dt_final}panel_RR_indexes.dta" 	   	   *
	*	CREATES:  ${out_tables}/T9A_first_Stage_Allcontrols.xls			       *
	****************************************************************************

	do "${do_tables}/appendix/T9A_first_Stage_Allcontrols.do"
	
	****************************************************************************
	* Table A10: IV estimates of child outcomes, with added controls	       *
	*--------------------------------------------------------------------------*
	*	REQUIRES:	"${dt_final}panel_RR_indexes.dta" 	   	   *
	*	CREATES: 	${out_tables}/T10A_sensitivity_allout.xls			       *
	****************************************************************************

	do "${do_tables}/appendix/T10A_sensitivity_allout.do"
	
	
	****************************************************************************
	* Table A11: IV estimates of child outcomes using number of sessions	   *
	* attended															       *
	*--------------------------------------------------------------------------*
	*	REQUIRES:	"${dt_final}panel_RR_indexes.dta" 	   	   *
	*	CREATES: 	${out_tables}/T11A_numbersessions.xls		       *
	****************************************************************************

	do "${do_tables}/appendix/T11A_numbersessions_child.do"
	
	
	****************************************************************************
	*  Table A12: IV estimates of parental outcomes using number of			   *
	*  sessions attended												       *
	*--------------------------------------------------------------------------*
	*	REQUIRES:	"${dt_final}panel_RR_indexes.dta" 	   	   *
	*	CREATES:  	${out_tables}/T12A_ITT_parentalpractices.xls		       *
	****************************************************************************

	do "${do_tables}/appendix/T12A_numbersessions_parental.do"
	
	
	****************************************************************************
	* Table A13: IV es estimates of individual measures of child outcomes      *
	*--------------------------------------------------------------------------*
	*	REQUIRES:	"${dt_final}panel_RR_indexes.dta" 	   	   *
	*	CREATES: 	${out_tables}/T13A_iv_child_individual.xls		       *
	****************************************************************************

	do "${do_tables}/appendix/T13A_iv_child_individual.do"
	
	****************************************************************************
	* Table A14: IV es estimates of individual measures of parental outcomes    *
	*--------------------------------------------------------------------------*
	*	REQUIRES:	"${dt_final}panel_RR_indexes.dta" 	   	   *
	*	CREATES:  	CREATES:	${out_tables}/T14A_Iv_parental_individual.xls *
	****************************************************************************

	do "${do_tables}/appendix/T14A_Iv_parental_individual.do"
	
	****************************************************************************
	* Table A15: Comparison between OLS and IV estimates of main outcomes 	   *
	*--------------------------------------------------------------------------*
	*	REQUIRES:	"${dt_final}panel_RR_indexes.dta" 	   	   *
	*	CREATES:  ${out_tables}/T15A_ols_iv.xls		       *
	****************************************************************************

	do "${do_tables}/appendix/T15A_ols_iv.do"
	
	
	****************************************************************************
	* Table A16: Selection on Unobservables 							       *
	*--------------------------------------------------------------------------*
	*	REQUIRES:	"${dt_final}panel_RR_indexes.dta" 	   	   *
	*	CREATES:  	${out_tables}/T16A_selec_unobs.xls					       *
	****************************************************************************

	do "${do_tables}/appendix/T16A_selec_unobs.do"
	
	
	****************************************************************************
	* Table A17: Attrition: interaction with treatment arms and baseline 	   *
	* variables		 													       *
	*--------------------------------------------------------------------------*
	*	REQUIRES:	"${dt_final}panel_RR_indexes.dta" 	   	   *
	*	CREATES: 	${out_tables}/T17A_attritionbaseline.xls		       *
	****************************************************************************

	do "${do_tables}/appendix/T17A_attritionbaseline.do"	
	
	
	****************************************************************************
	* Table A18: Lee Bounds (z-index)		      							   *
	*--------------------------------------------------------------------------*
	*	REQUIRES:	"${dt_final}panel_RR_indexes.dta" 	   	   *
	*	CREATES:  	${out_tables}/T18A_leebounds.xls		       *
	****************************************************************************

	do "${do_tables}/appendix/T18A_leebounds.do"	
	
	****************************************************************************
	* Table A19: Inverse Probability Weighting (z-index)   				       *
	*--------------------------------------------------------------------------*
	*	REQUIRES:	"${dt_final}panel_RR_indexes.dta" 	   	   *
	*	CREATES:  	${out_tables}/T19A_inverseprob.xls		       *
	****************************************************************************

	do "${do_tables}/appendix/T19A_inverseprob.do"	
	
	****************************************************************************
	* Table A20: Tobit regression for the impacts on child vocabulary index    *
	* at endline			    											   *
	*--------------------------------------------------------------------------*
	*	REQUIRES:	"${dt_final}panel_RR_indexes.dta" 	   	   *
	*	CREATES: 	${out_tables}/T20A_tobitreg_vocabulary.xls			       *
	****************************************************************************

	do "${do_tables}/appendix/T20A_tobitreg_vocabulary.do"	
	
	****************************************************************************
	* Table A21: Tobit regression for the impacts on child socioemotional 	   *
	* index at endline			      										   *
	*--------------------------------------------------------------------------*
	*	REQUIRES:	"${dt_final}panel_RR_indexes.dta" 	   	   *
	*	CREATES: 	${out_tables}/T21A_tobitreg_socioem.xls		       *
	****************************************************************************

	do "${do_tables}/appendix/T21A_tobitreg_socioem.do"	
	
	****************************************************************************
	* Table A22: Heterogeneity of impact: caregiver education			       *
	*--------------------------------------------------------------------------*
	*	REQUIRES:	"${dt_final}panel_RR_indexes.dta" 	   	   *
	*	CREATES: 	${out_tables}/T22A_heter_bycareg_educ.xls		       *
	****************************************************************************

	do "${do_tables}/appendix/T22A_heter_bycareg_educ.do"	
	
	****************************************************************************
	* Table A23: Heterogeneity of impact: caregiver cognition (IQ)		       *
	*--------------------------------------------------------------------------*
	*	REQUIRES:	"${dt_final}panel_RR_indexes.dta" 	   	   *
	*	CREATES: 	${out_tables}/T23A_heter_bycareg_cog.xls		       *
	****************************************************************************

	do "${do_tables}/appendix/T23A_heter_bycareg_cog.do"	
	
	****************************************************************************
	* Table A24: Heterogeneity of impact: caregiver's depressive symptoms	   *
	*--------------------------------------------------------------------------*
	*	REQUIRES:	"${dt_final}panel_RR_indexes.dta" 	   	   *
	*	CREATES: 	${out_tables}/T24A_heter_bycareg_dep.xls		       *
	****************************************************************************

	do "${do_tables}/appendix/T24A_heter_bycareg_dep.do"	
	
	****************************************************************************
	* Table A25: Heterogeneity of impact: child's sex					       *
	*--------------------------------------------------------------------------*
	*	REQUIRES:	"${dt_final}panel_RR_indexes.dta" 	   	   *
	*	CREATES: 	${out_tables}/T25A_heter_bychild_sex.xls		       *
	****************************************************************************

	do "${do_tables}/appendix/T25A_heter_bychild_sex.do"	
	
	****************************************************************************
	* Table A26: Heterogeneity of impact: child's age					       *
	*--------------------------------------------------------------------------*
	*	REQUIRES:	"${dt_final}panel_RR_indexes.dta" 	   	   *
	*	CREATES: 	${out_tables}/T26A_heter_bychild_age.xls		       *
	****************************************************************************

	do "${do_tables}/appendix/T26A_heter_bychild_age.do"	
	
	****************************************************************************
	* Table A27: Heterogeneity of impact: baseline child outcomes		       *
	*--------------------------------------------------------------------------*
	*	REQUIRES:	"${dt_final}panel_RR_indexes.dta" 	   	   *
	*	CREATES: 	${out_tables}/T27A_heter_bychild_outcome.xls		       *
	****************************************************************************

	do "${do_tables}/appendix/T27A_heter_bychild_outcome.do"	
	
	****************************************************************************
	* Table A28: Heterogeneity of impact: Caregiver's 						   *
	* Conscientiousness (Big Five)		     								   *
	*--------------------------------------------------------------------------*
	*	REQUIRES:	"${dt_final}panel_RR_indexes.dta" 	   	   *
	*	CREATES: 	${out_tables}/T28A_heter_bycare_big5do.xls		       *
	****************************************************************************

	do "${do_tables}/appendix/T28A_heter_bycareconsc_big5do.do"
	
	
	****************************************************************************
	* Table A29: Heterogeneity of impact: Caregiver's Openness (Big Five)	   *
	*--------------------------------------------------------------------------*
	*	REQUIRES:	"${dt_final}panel_RR_indexes.dta" 	   	   *
	*	CREATES: 	${out_tables}/T29A_heter_bycareopenness_big5.xls		       *
	****************************************************************************

	do "${do_tables}/appendix/T29A_heter_bycareopenness_big5.do"	
	
	****************************************************************************
	* Table A30: Heterogeneity of impact: Caregiver's Neuroticism (Big Five)   *
	*--------------------------------------------------------------------------*
	*	REQUIRES:	"${dt_final}panel_RR_indexes.dta" 	   	   *
	*	CREATES: 	${out_tables}/T30A_heter_bycareneuritism_big5.xls		       *
	****************************************************************************

	do "${do_tables}/appendix/T30A_heter_bycareneuritism_big5.do"	
	
	****************************************************************************
	* Table A31: Heterogeneity of impact: Caregiver's Agreeableness (Big Five) *
	*--------------------------------------------------------------------------*
	*	REQUIRES:	"${dt_final}panel_RR_indexes.dta" 	   	   *
	*	CREATES: 	${out_tables}/T31A_heter_bycareagree_big5.xls		       *
	****************************************************************************

	do "${do_tables}/appendix/T31A_heter_bycareagree_big5.do"	
	
	****************************************************************************
	* Table A32: Heterogeneity of impact: Caregiver's Extroversion (Big Five)  *
	*--------------------------------------------------------------------------*
	*	REQUIRES:	"${dt_final}panel_RR_indexes.dta" 	   	   *
	*	CREATES: 	${out_tables}/T32A_heter_bycareextr_big5.xls		       *
	****************************************************************************

	do "${do_tables}/appendix/T32A_heter_bycareextr_big5.do"	
	
	
	****************************************************************************
	* Table A33: Facilitator Background by Treatment Arm					   *
	*--------------------------------------------------------------------------*
	*	REQUIRES:	"${dt_final}panel_RR_indexes.dta" 	   	   *
	*	CREATES: 	T33A_facilitator_bytreatment			       *
	****************************************************************************

	do "${do_tables}/appendix/T33A_facilitator_bytreatment.do"	
	
	****************************************************************************
	* Table A34: Heterogeneity of impact: Facilitator Background			   *
	*--------------------------------------------------------------------------*
	*	REQUIRES:	"${dt_final}panel_RR_indexes.dta" 	   	   *
	*	CREATES: 		T34A_facilitator_backgournd		       *
	****************************************************************************

	do "${do_tables}/appendix/T34A_facilitator_backgournd.do"	
	
	****************************************************************************
	* Table A35: Heterogeneity of impact: Type of Health Center 			   *
	*--------------------------------------------------------------------------*
	*	REQUIRES:	"${dt_final}panel_RR_indexes.dta" 	   	   *
	*	CREATES:  	T35A_heter_byhealthcenter			       *
	****************************************************************************

	do "${do_tables}/appendix/T35A_heter_byhealthcenter.do"
	
	****************************************************************************
	* Table A36: Mediation analysis: Vocabulary Index			 			   *
	*--------------------------------------------------------------------------*
	*	REQUIRES:	"${dt_final}panel_RR_indexes.dta" 	   	   *
	*	CREATES:  	T36A_mediation_voc			       *
	****************************************************************************

	do "${do_tables}/appendix/T36A_mediation_voc.do"
	
	****************************************************************************
	* Table A37: Mediation analysis: Socioemotional Index		 			   *
	*--------------------------------------------------------------------------*
	*	REQUIRES:	"${dt_final}panel_RR_indexes.dta" 	   	   *
	*	CREATES: 	T37A_mediation_sem			       *
	****************************************************************************

	do "${do_tables}/appendix/T37A_mediation_sem.do"	
	
	****************************************************************************
	* Table A38: Predicted Program Impacts on Adult Outcomes	 			   *
	*--------------------------------------------------------------------------*
	*	Calculations in excel file ${out_tables}/T38A_predictedimp_adultout.xlsx  *
	****************************************************************************

	****************************************************************************
	* Table A39: Summary of lifetime costs and benefits			 			   *
	*--------------------------------------------------------------------------*
	*	Calculations in excel file ${out_tables}/T39A_summary_costs_benefits.xlsx  *
	****************************************************************************

	****************************************************************************
	* Table A40: Cost-benefit Ratios with ITT Impacts			 			   *
	*--------------------------------------------------------------------------*
	*	Calculations in excel file ${out_tables}/T40A_costs_benefits_ratio_ITT.xlsx *
	****************************************************************************

	
	
*---------------------------------------------------------------- End of do-file
